package com.example.democommon.contasant;

/**
 * @author zhang
 */
public interface CommonConstant {

	/**
	 * 正常状态
	 */
	public static final Integer STATUS_NORMAL = 0;

	/**
	 * 禁用状态
	 */
	public static final Integer STATUS_DISABLE = -1;

	/**
	 * 删除标志
	 */
	public static final Integer DEL_FLAG_1 = 1;

	/**
	 * 未删除
	 */
	public static final Integer DEL_FLAG_0 = 0;
	
	
	/** {@code 500 Server Error} (HTTP/1.0 - RFC 1945) */
    public static final Integer SC_INTERNAL_SERVER_ERROR_500 = 500;
    public static final Integer SC_INTERNAL_SERVER_ERROR_401 = 401;
    /** {@code 200 OK} (HTTP/1.0 - RFC 1945) */
    public static final Integer SC_OK_200 = 200;
    
    /**访问权限认证未通过 510*/
    public static final Integer SC_JEECG_NO_AUTHZ=510;

    /** 登录用户Shiro权限缓存KEY前缀 */
    public static String PREFIX_USER_SHIRO_CACHE  = "sys_user:shiro:";
    /** 登录用户Token令牌缓存KEY前缀 刷新token */
    public static final String PREFIX_USER_TOKEN  = "prefix_user_token_";
    /** Token缓存时间：3600秒即一小时 */
    public static final int  TOKEN_EXPIRE_TIME  = 360;
    /**
     * JWT-account:
     */
    public static final String ACCOUNT = "account";
    /**
     * JWT-currentTimeMillis:
     */
    public static final String CURRENT_TIME_MILLIS = "currentTimeMillis";

    public final static String X_ACCESS_TOKEN = "X-Access-Token";
    public final static String X_SIGN = "X-Sign";
    public final static String X_TIMESTAMP = "X-TIMESTAMP";
    public final static String TOKEN_IS_INVALID_MSG = "Token失效，请重新登录!";
    public final static String TOKEN_IS_ERROR = "Token有误，请重新登录!";
    public final static String TOKEN_IS_NOT = "未携带令牌!";
    public final static String TOKEN_NOT_ALLOWED = "请求的资源的访问是不存在，请重新登录!";

    public final static String REDIS_KEY_FLAG = "*";

    /*----------------------------------huTool 二维码------------------------*/
    public final static Integer DEFAULT_WIDTH = 200;
    public final static Integer DEFAULT_HEIGHT = 200;
    public final static String QRCODE_CONTENT = "我是二维码的一个测试头";
    public final static String CONTENT_TYPE = "image/jpeg";


}
